package com.huiyeji.dynamic.core.builder;


import com.huiyeji.dynamic.core.DynamicRegex;
import com.huiyeji.dynamic.core.RegexContainer;
import com.huiyeji.dynamic.core.provider.BooleanParamProvider;
import com.huiyeji.dynamic.core.provider.ParamProvider;

import java.util.Collections;

public class BooleanParamProviderBuilder implements ParamProviderBuilder {
    @Override
    public ParamProvider build(String paramStr) {
        return new BooleanParamProvider(paramStr);
    }

    @Override
    public RegexContainer ruleInitialize() {
        return new RegexContainer(Collections.singletonList(
                DynamicRegex.PARAM_BOOLEAN.complete()
        ));
    }

    @Override
    public int getOrder() {
        return 100;
    }
}
